package com.memory.client.feignClient;

import com.memory.common.model.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 内部用户服务
 */
@FeignClient(name = "memory-core", path = "/api/user/inner")
public interface UserFeignClient {

    /**
     * 数据库中查是否已分配给用户秘钥（accessKey）
     *
     * @param accessKey
     * @return
     */
    @GetMapping("/get/invoke")
    User getInvokeUser(@RequestParam(value = "accessKey") String accessKey);
}
